﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Admin.Core.Dto;
using ZhonTai.Admin.Services.Patrol.Dto;
using ZhonTai.Admin.Services.Patrol.TaskDto;

namespace ZhonTai.Admin.Services.Patrol
{
    public interface IScheduleTaskService
    {
        Task<long> AddAsync(PatrolTaskAddInput input);

        Task<bool> SetConfigAsync(PatrolTaskConfigInputs input);

        Task<IList<PatrolTaskPageOutput>> GetPageAsync(PageInput<PatrolTaskGetPageDto> input);

        Task<PatrolTaskOutput> GetDetailAsync(long id);

        Task<long> StartTaskAsync(long id);

        Task<bool> EndTaskAsync(PatrolTaskProcessDto dto);

        Task<long> UploadNodeAsync(PatrolTaskNodeDto dto);
    }
}
